package cn.sxt.common.controller;

import javax.servlet.http.HttpServletRequest;

import cn.sxt.yxl.common.util.PageInfoUtil;

public class BaseController {

	public PageInfoUtil proccedPageInfo(HttpServletRequest request){
		PageInfoUtil pageInfoUtil = new PageInfoUtil();
		
		String page = request.getParameter("page");
		
		try {
			pageInfoUtil.setCurrentPage(Integer.valueOf(page));
		} catch (NumberFormatException e) {
			e.printStackTrace();
		}
		return pageInfoUtil;
	}
}
